 
<%@page import="com.yourcompany.struts.form.MobileOperatorMasterForm"%>
<%@page import="com.dts.project.dao.MobileOperatorMasterDao"%> 
 
 
 <%
 String target="ViewMobileOperatorMaster.jsp?status=Updation failed";
 try
 {
 MobileOperatorMasterForm form=new MobileOperatorMasterForm();
 form.setOperatorId(Integer.parseInt(request.getParameter("OperatorId")));
 form.setOperatorName(request.getParameter("operatorName"));
 form.setOperatorDesc(request.getParameter("operatorDesc"));
 MobileOperatorMasterDao dao=new MobileOperatorMasterDao();
 boolean flag=dao.UpdateMobileOperatorMaster(form);
 if(flag)
 {
 target="ViewMobileOperatorMaster.jsp?status=Updation Success";
 }
 }
 catch(Exception e)
 {
 e.printStackTrace();
 }
 RequestDispatcher rd=request.getRequestDispatcher(target);
 rd.forward(request,response);
 %>